package Operation;
import book.Booklist;
import book.Booklist;

public class ExitOperation implements IOperation{
    public void work(Booklist booklist) {
        System.out.println("退出系统");
        int currentsize = booklist.getUsedSize();
        for (int i = 0; i <currentsize ; i++) {
            booklist.setBooks(i,null);
        }
        booklist.setUsedSize(0);
        System.exit(0);
    }

}